export function throttle(foo,delay) {
    let turn = true
    return function() {
        if(!turn) {
            return false
        }
        turn = false
        setTimeout(()=>{
            turn = true
            foo.apply(this,arguments)
        },delay)
    }
}

export function toast() {
    alert(1)
}